<template>
  <div class="city-choose">
    <Bar title="搜索城市" page="2"></Bar>
    <Search></Search>
  </div>
</template>

<script setup>
// import { useStore } from 'vuex'
import Search from '@/components/search.vue'
import Bar from '@/components/bar.vue'

// const store = useStore()

// console.log(`旧的${store.state.now.text}`)
// 获取最新数据
// store.dispatch('setNowWeather', 101010100)
// store.dispatch('set3DaysWeather', 101010100)
</script>

<style lang="less" scoped>
body {
  padding: 15px;
  font-family: 'montserrat', sans-serif;
}
.city-choose {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 15px;
  background-color: #f5f6f7;
}
</style>
